new Vue({
    el:"#app",
    data:{
        adTime:'',
        leaTime:'',
        admissionD:'',
        pctScore:'',
        infection:'',
        infectionR:'',
        detail:'',
        dosage:'',
        days:'',
        others:'',
    },
    methods:{
        goto(){
            if(this.adTime==''){
                this.$toast('请填写入院时间')
            }
            else if(this.leaTime==''){
                this.$toast('请填写出院时间')
            }

            else if(this.adTime>this.leaTime){
                this.$toast('出入院时间填写有误');
            }
            else if(this.admissionD==''){
                this.$toast('请填写入院诊断')
            }
            else if(this.pctScore==''){
                this.$toast('请填写PCT评分')
            }
            else if(this.infection==''){
                this.$toast('请填写感染部位')
            }
            else if(this.infectionR==''){
                this.$toast('请填写感染原因')
            }
            else if(this.detail==''){
                this.$toast('请填写详细治疗方案')
            }
            else if(this.dosage==''){
                this.$toast('请选择血必净使用剂量')
            }
            else if(this.days==''){
                this.$toast('请选择血必净使用天数')
            }
            else if(this.others==''){
                this.$toast('请填写联合药物使用情况')
            }
            else{
                localStorage.setItem("secondIndex",2)
                window.location.href="perHistory.html"
            }
        }
    },
   updated() {
       
   },
})